Optimal. Leaf size=201 \[ \frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {188 \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.49, antiderivative size = 201, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {3558, 3597, 3592, 3527, 3480, 206} \[ \frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {188 \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3480
Rule 3527
Rule 3558
Rule 3592
Rule 3597
Rubi steps
\begin {align*} \int \frac {\tan ^5(c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {\int \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-4 a+\frac {9}{2} i a \tan (c+d x)\right ) \, dx}{a^2}\\ &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}-\frac {2 \int \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {27 i a^2}{2}-\frac {47}{4} a^2 \tan (c+d x)\right ) \, dx}{7 a^3}\\ &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}-\frac {4 \int \tan (c+d x) \sqrt {a+i a \tan (c+d x)} \left (\frac {47 a^3}{2}-\frac {223}{8} i a^3 \tan (c+d x)\right ) \, dx}{35 a^4}\\ &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}-\frac {4 \int \sqrt {a+i a \tan (c+d x)} \left (\frac {223 i a^3}{8}+\frac {47}{2} a^3 \tan (c+d x)\right ) \, dx}{35 a^4}\\ &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {188 \sqrt {a+i a \tan (c+d x)}}{35 a d}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}-\frac {i \int \sqrt {a+i a \tan (c+d x)} \, dx}{2 a}\\ &=-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {188 \sqrt {a+i a \tan (c+d x)}}{35 a d}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}-\frac {\operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{d}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{\sqrt {2} \sqrt {a} d}-\frac {\tan ^4(c+d x)}{d \sqrt {a+i a \tan (c+d x)}}-\frac {188 \sqrt {a+i a \tan (c+d x)}}{35 a d}+\frac {47 \tan ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{35 a d}-\frac {9 i \tan ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{7 a d}+\frac {223 (a+i a \tan (c+d x))^{3/2}}{105 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.65, size = 123, normalized size = 0.61 \[ \frac {-\frac {840 e^{i (c+d x)} \sinh ^{-1}\left (e^{i (c+d x)}\right )}{\sqrt {1+e^{2 i (c+d x)}}}-\left (\sec ^4(c+d x) (224 i \sin (2 (c+d x))+124 i \sin (4 (c+d x))+1484 \cos (2 (c+d x))+229 \cos (4 (c+d x))+1015)\right )}{840 d \sqrt {a+i a \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.46, size = 389, normalized size = 1.94 \[ -\frac {105 \, \sqrt {2} {\left (a d e^{\left (7 i \, d x + 7 i \, c\right )} + 3 \, a d e^{\left (5 i \, d x + 5 i \, c\right )} + 3 \, a d e^{\left (3 i \, d x + 3 i \, c\right )} + a d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {1}{a d^{2}}} \log \left (4 \, {\left ({\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a d^{2}}} + a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - 105 \, \sqrt {2} {\left (a d e^{\left (7 i \, d x + 7 i \, c\right )} + 3 \, a d e^{\left (5 i \, d x + 5 i \, c\right )} + 3 \, a d e^{\left (3 i \, d x + 3 i \, c\right )} + a d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {1}{a d^{2}}} \log \left (-4 \, {\left ({\left (a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a d^{2}}} - a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) + 2 \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (353 \, e^{\left (8 i \, d x + 8 i \, c\right )} + 1708 \, e^{\left (6 i \, d x + 6 i \, c\right )} + 2030 \, e^{\left (4 i \, d x + 4 i \, c\right )} + 1260 \, e^{\left (2 i \, d x + 2 i \, c\right )} + 105\right )}}{420 \, {\left (a d e^{\left (7 i \, d x + 7 i \, c\right )} + 3 \, a d e^{\left (5 i \, d x + 5 i \, c\right )} + 3 \, a d e^{\left (3 i \, d x + 3 i \, c\right )} + a d e^{\left (i \, d x + i \, c\right )}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan \left (d x + c\right )^{5}}{\sqrt {i \, a \tan \left (d x + c\right ) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 131, normalized size = 0.65 \[ \frac {\frac {2 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {7}{2}}}{7}-\frac {6 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {5}{2}} a}{5}+\frac {8 \left (a +i a \tan \left (d x +c \right )\right )^{\frac {3}{2}} a^{2}}{3}-4 a^{3} \sqrt {a +i a \tan \left (d x +c \right )}-\frac {a^{\frac {7}{2}} \sqrt {2}\, \arctanh \left (\frac {\sqrt {a +i a \tan \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )}{2}-\frac {a^{4}}{\sqrt {a +i a \tan \left (d x +c \right )}}}{d \,a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.65, size = 156, normalized size = 0.78 \[ \frac {105 \, \sqrt {2} a^{\frac {11}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + 120 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a^{2} - 504 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{3} + 1120 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{4} - 1680 \, \sqrt {i \, a \tan \left (d x + c\right ) + a} a^{5} - \frac {420 \, a^{6}}{\sqrt {i \, a \tan \left (d x + c\right ) + a}}}{420 \, a^{6} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.45, size = 144, normalized size = 0.72 \[ -\frac {1}{d\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}-\frac {4\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{a\,d}+\frac {8\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}{3\,a^2\,d}-\frac {6\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}}{5\,a^3\,d}+\frac {2\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2}}{7\,a^4\,d}+\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2\,\sqrt {a}}\right )\,1{}\mathrm {i}}{2\,\sqrt {a}\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{5}{\left (c + d x \right )}}{\sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________